﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

namespace ParallelTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            Console.WriteLine("-----" + DateTime.Now.ToString("HH:mm:ss ffff"));

            for (int i = 0; i < 32; i++)
            {
                ThreadPool.QueueUserWorkItem(obj => { new Test().Execute(); });
            }

            Console.ReadLine();
        }
    }


    class Test
    {
        public void Execute()
        {
            Thread.Sleep(20000);
            Console.WriteLine(DateTime.Now.ToString("HH:mm:ss ffff"));
        }
    }
}